import math
x1 = (math.pow(2,4)+7-3*4)/5
print("(1)x=",x1)

x2 = (1+math.pow(3,2)*(16%7))/7
print("(2)x=",x2)